import Vue from "vue";
import VueI18n from "vue-i18n";
import configJs from '@/config'
import cn from "./zh"; // 引入本地语言包，自己新建
import en from "./en";

Vue.use(VueI18n);

const messages = {
  'en': en,
  'en-us': en,
  'zh-cn': cn,
};

const i18n = new VueI18n({
  locale: configJs.language || "zh-cn",
  messages
});

export default i18n;
